package com.ls.mq.iterface;

public interface IMQFuture {
	public abstract void await() throws InterruptedException;

	public abstract void awaitBlocking();

	public abstract boolean isCompleted();

	public abstract boolean isExpired();

	public abstract long timeoutInNanos();

	public abstract Object result();

	public abstract Throwable exception();

	public abstract void setCallback(IMQCallback callback);
	
	public abstract Object get();
	
	public void set(Object v) ;

	public void setException(Throwable t) ;
}
